package com.ujiuye.test;

import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;

public class Revert {
    public static void main(String[] args) {
        String i = "123";
        int i1 = Integer.parseInt(i);
        Integer i2 = Integer.valueOf(i);
        System.out.println(i1);
        System.out.println(i2);
        double d1 = 123.4456;
        BigDecimal decimal = new BigDecimal(d1);
        MathContext ma_co = new MathContext(5, RoundingMode.CEILING);
        BigDecimal round = decimal.round(ma_co);
        System.out.println(round);
        int is = 30;
        String a = ""+is;
        a = a.replace("30", "abc");
        System.out.println(a);
    }
}
